import { connect } from 'react-redux'
import MyMessage from '../../../views/My/MyOperation/MyMessage'

function mapStateToProps(state: any) {
    return {
        userInfo: state.user.userInfo,
        msgData: state.user.msgData
    }
}

function mapDispatchToProps(dispatch: (obj: any) => void) {
    return {
        'SET_USER_MESSAGE': (data: any) => {
            dispatch({ type: 'SET_USER_MESSAGE', data })
        }
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(MyMessage)